
require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('animate.css')

require('../css/advert.less')

document.addEventListener('DOMContentLoaded', function () {
    const cdNum = document.querySelector('#num')
    const countDown = document.querySelector('.countDown')
    console.log(cdNum);
    // 倒计时渲染
    let num = 5;
    cdNum.textContent = num + 's'
    const timeId = setInterval(function () {
        if (num > 0) {
            cdNum.textContent = num + 's'
        } else {
            location.href = './register.html'
            clearInterval(timeId)
        }
        --num;
    }, 1000)

    //点击跳过按钮直接去往注册界面
    countDown.addEventListener('click', function () {
        location.href = './register.html'
    })
})